//
// Created by root on 19-7-29.
//

#include "string_utils.h"
#include <sstream>

std::string itoa(int i) {
    using namespace std;
    stringstream ss;
    ss<<i;
    string a = ss.str();
    return a;
}

bool end_with(const std::string &s, const std::string &sub){
    return s.rfind(sub)==(s.length()-sub.length())?true:false;
}
